import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif


// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif

/**
 * 没有数据
 */
import emptyData from "@/components/empty/empty.vue";
Vue.component("uEmpty", emptyData);
/**
 * js方法
 */
import filters from "@/utils/filters.js";
Vue.prototype.$filters = filters;

/**
 * 弹窗
 */
import st from "@/utils/showtoast.js";
Vue.prototype.$st = st;
/**
 * 存储
 */
import storage from '@/utils/storage.js';
Vue.prototype.$storage = storage;

/**
 * 网络图片地址
 */
import config from "@/utils/config.js";
Vue.prototype.getImageURL = function (url) {
	if (url.startsWith("/static/")) {
		return url;
	}
	return config.imageURL + url;
}

